/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.view.utils;

import java.awt.Component;
import javax.swing.JOptionPane;
import systole.view.messages.DialogsMessages;

/**
 *
 * @author Juan
 */
public class ErrorDialog {

    public static void showError(Component parent, String msg) {
        JOptionPane.showOptionDialog(parent,
                msg, DialogsMessages.DIALOG_BOX_TITLE,
                JOptionPane.CLOSED_OPTION, JOptionPane.ERROR_MESSAGE, null,
                null, null);
    }
}
